:root {
	font-family: Inter, "Aptos", "Segoe UI", sans-serif;
	color: #202521;
	background: #f4f5f2;
	font-size: 14px;
	--ink: #202521;
	--muted: #737b74;
	--line: #e2e5df;
	--green: #658d2c;
	--nav: #111613;
	--ari-accent: #b9e43b;
	--ari-panel: #fff;
}

body {
	min-height: 100vh;
	background: #f4f5f2;
}

button {
	border-radius: 5px;
	background: #202521;
	padding: 12px 17px;
	font-weight: 650;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

button:hover {
	filter: none;
	background: #39443a;
}

button:active {
	transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid #b9e43b;
	outline-offset: 2px;
}

input,
select,
textarea {
	border-color: #dce1d9;
	border-radius: 5px;
	background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid #d0e99a;
	outline-offset: 0;
	border-color: #769d3a;
}

.eyebrow {
	color: #77816f;
	letter-spacing: 1.9px;
}

.logo {
	width: 50px;
	height: 50px;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background-color: #fff;
	background-image: url("/assets/ari-logo.jpeg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: transparent;
	font-size: 0;
}

.logo span {
	display: none;
}

aside {
	width: 250px;
	background: #111613;
	padding: 27px 18px 20px;
	border-right: 1px solid #252c27;
}

.brand {
	gap: 13px;
	margin: 0 0 38px;
	padding: 0 4px;
}

.brand .logo {
	width: 54px;
	height: 54px;
}

.brand strong {
	font-size: 12px;
	letter-spacing: 1.7px;
}

.brand small {
	color: #a4ada2;
	letter-spacing: .3px;
}

.nav-caption {
	color: #8b9689;
	letter-spacing: 2px;
}

.module-switch {
	gap: 6px;
	margin-bottom: 22px;
}

.module-switch button {
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: #c0c8bd;
	padding: 12px 11px;
}

.module-switch button:hover,
.tabs button:hover {
	background: #202822;
	color: #fff;
}

.module-switch button.active {
	border-color: #36422a;
	background: #27321f;
	color: #d7f27c;
}

#parc-navigation {
	border-color: #ffffff18;
}

.tabs button {
	border-radius: 5px;
	color: #b4bdb2;
	padding: 12px 11px;
}

.tabs button.active {
	background: #263028;
	color: #f5f8f1;
}

.tabs button.active:before {
	left: 0;
	width: 3px;
	background: var(--ari-accent);
}

#account-menu {
	border-color: #ffffff20;
}

#account-menu .subtle {
	background: transparent;
}

.aside-bottom {
	border-color: #ffffff20;
	color: #a3ada1;
}

.local-dot {
	background: var(--ari-accent);
}

main {
	max-width: 1900px;
	margin-left: 250px;
	padding: 38px clamp(24px, 4vw, 66px) 28px;
}

main > header {
	margin-bottom: 32px;
	padding-bottom: 23px;
	border-bottom: 1px solid #dfe3dc;
}

main > header .eyebrow {
	color: #6a8f31;
}

main > header h1 {
	margin: 9px 0 7px;
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 720;
	letter-spacing: -1.3px;
}

main > header p {
	font-size: 13px;
}

#add,
.dialog-actions button[type="submit"],
#login-form button,
#settings-add-member button {
	background: #202521;
	box-shadow: none;
}

#add:hover,
.dialog-actions button[type="submit"]:hover,
#login-form button:hover,
#settings-add-member button:hover {
	background: #658d2c;
}

.subtle {
	border: 1px solid #e0e4dc;
	background: #fff;
	color: #4e594c;
}

.subtle:hover {
	border-color: #c6d69f;
	background: #f4f8eb;
	color: #405c1d;
}

.portfolio-grid {
	gap: 18px;
}

#module-orders.active {
	border-color: #3a4b30;
	background: #27321f;
	color: #d7f27c;
}

#orders-workspace {
	display: grid;
	gap: 22px;
}

.orders-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	overflow: hidden;
	padding: 7px;
	border: 1px solid #e1e4dd;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 8px 26px #18220e08;
}

.orders-summary > div {
	padding: 18px 22px;
	border-right: 1px solid #edf0e9;
}

.orders-summary > div:last-child {
	border-right: 0;
}

.orders-summary > div strong {
	font-size: 25px;
	font-weight: 720;
	letter-spacing: -.6px;
	color: #202521;
}

.orders-summary > div span {
	font-size: 11px;
	color: #737b74;
}

.orders-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 22px;
}

.orders-toolbar h2 {
	margin-bottom: 5px;
	font-size: 17px;
}

.orders-toolbar p {
	font-size: 12px;
}

.orders-filters {
	display: flex;
	gap: 9px;
	min-width: min(100%, 430px);
}

.orders-filters input {
	flex: 1;
}

.orders-filters select {
	min-width: 160px;
}

.order-card {
	border-color: #e1e4dd;
	border-radius: 9px;
	box-shadow: 0 5px 18px #18220e06;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.order-card:hover {
	transform: translateY(-2px);
	border-color: #cbd5bd;
	box-shadow: 0 10px 24px #18220e0d;
}

.order-card-heading h2 {
	color: #202521;
}

.order-card-actions {
	border-color: #edf0e9;
}

@media (max-width: 700px) {
	.module-switch {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.module-switch button:last-child {
		flex-basis: auto;
	}

	.orders-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.orders-summary > div:nth-child(2) {
		border-right: 0;
	}

	.orders-summary > div:nth-child(-n+2) {
		border-bottom: 1px solid #edf0e9;
	}

	.orders-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.orders-filters {
		min-width: 0;
	}

	.orders-filters select {
		min-width: 130px;
	}
}

.portfolio-card,
.settings-panel,
.panel {
	border: 1px solid #e1e4dd;
	border-radius: 8px;
	background: var(--ari-panel);
	box-shadow: 0 8px 26px #18220e08;
}

.portfolio-card {
	padding: 27px;
}

.portfolio-card:before {
	height: 4px;
	background: #a6ce3b;
}

.stock.portfolio-card:before {
	background: #89958a;
}

.portfolio-icon,
.stock .portfolio-icon {
	border-radius: 6px;
	background: #f0f5e4;
	color: #64862b;
}

.stock .portfolio-icon {
	background: #edf0ed;
	color: #526252;
}

.portfolio-card h2 {
	font-weight: 700;
}

.portfolio-counts strong {
	color: #202521;
	font-weight: 700;
}

.portfolio-attention,
.stock .portfolio-attention {
	border: 1px solid #e7edda;
	background: #f7faef;
	color: #586c38;
}

.stock .portfolio-links button:first-child {
	background: #515d52;
}

.home-flow {
	border-color: #e1e4dd;
	border-radius: 8px;
	background: #fff;
}

.stat {
	border: 1px solid #e1e4dd;
	border-radius: 7px;
	background: #fff;
}

.stat strong {
	color: #202521;
}

.stage-navigation {
	border-color: #e1e4dd;
}

.stage-buttons {
	gap: 6px;
	border-radius: 6px;
	background: #e9ece6;
	padding: 4px;
}

.stage-buttons button {
	border-radius: 4px;
	background: transparent;
	color: #687166;
}

.stage-buttons button.active {
	background: #202521;
	color: #fff;
}

.panel {
	overflow: hidden;
}

.toolbar {
	border-bottom-color: #e5e8e2;
	background: #fff;
}

.toolbar h2,
.task-toolbar h2 {
	font-size: 16px;
	font-weight: 700;
}

.list-heading {
	background: #f3f5f1;
	color: #667064;
}

.vehicle {
	border-bottom-color: #e8ebe5;
	background: #fff;
}

.vehicle:hover {
	background: #fbfcf8;
}

.vehicle.expanded {
	background: #f9fbf5;
}

.plate {
	border-color: #dfe4d8;
	border-radius: 4px;
	background: #f5f7f2;
	color: #394337;
}

.badge {
	border-radius: 4px;
}

.task-column {
	border-radius: 7px;
	background: #eef0ec;
}

.task-column.progress {
	background: #f5f2e8;
}

.task-column.done {
	background: #eef3e8;
}

.task-card {
	border-color: #e2e6de;
	border-radius: 6px;
	box-shadow: 0 3px 10px #15200c08;
}

.task-card-actions button,
.task-complete {
	border-radius: 4px;
}

.settings-panel {
	padding: 26px;
}

dialog {
	border: 1px solid #dfe4da;
	border-radius: 9px;
	box-shadow: 0 24px 80px #121a1270;
}

dialog::backdrop {
	background: #111613a8;
	backdrop-filter: blur(3px);
}

.dialog-heading {
	border-bottom-color: #e6e9e3;
}

footer {
	margin-top: 30px;
	padding-top: 18px;
	border-top-color: #dfe3dc;
}

.footer-actions {
	display: flex;
	gap: 8px;
}

.site-credit {
	color: #7c8479;
	font-size: 10px;
	letter-spacing: .15px;
	text-decoration: none;
	white-space: nowrap;
}

.site-credit strong {
	color: #46523e;
	font-weight: 700;
}

.site-credit:hover,
.site-credit:hover strong {
	color: #64862b;
	text-decoration: underline;
}

#login-portal {
	position: relative;
	overflow: auto;
	background:
		radial-gradient(ellipse at 78% 10%, #263a25 0, transparent 34%),
		linear-gradient(140deg, #171d19 0%, #101512 52%, #080b09 100%);
}

#login-portal:before {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
	background-size: 52px 52px;
	content: "";
	mask-image: linear-gradient(110deg, #000 0%, transparent 72%);
	pointer-events: none;
}

.login-card {
	position: relative;
	width: 480px;
	padding: 42px;
	border: 1px solid #ffffff;
	border-radius: 8px;
	box-shadow: 0 30px 90px #0008;
}

.login-card:before {
	position: absolute;
	top: -1px;
	right: 24px;
	left: 24px;
	height: 4px;
	border-radius: 0 0 3px 3px;
	background: var(--ari-accent);
	content: "";
}

.login-card .logo {
	width: 82px;
	height: 82px;
	margin-bottom: 25px;
	border: 1px solid #e3e6e0;
	border-radius: 6px;
	background-color: #fff;
	background-image: url("/assets/ari-logo.jpeg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.login-card > .eyebrow {
	color: #688a34;
	font-size: 9px;
	letter-spacing: 1.65px;
}

.login-card h1 {
	margin: 13px 0 9px;
	color: #1d231e;
	font-size: 31px;
	letter-spacing: -1.2px;
}

.login-card > p {
	color: #737b73;
	font-size: 13px;
}

.login-card form {
	gap: 17px;
	margin-top: 27px;
}

.login-card label {
	gap: 8px;
	color: #353c35;
	font-size: 12px;
}

.login-card input {
	min-height: 46px;
	padding: 12px 13px;
	border-color: #dce1d8;
	border-radius: 5px;
}

.login-card button {
	min-height: 46px;
	border-radius: 5px;
	background: #202521;
}

.login-card button:hover {
	background: #658d2c;
}

.login-card .site-credit {
	display: block;
	margin-top: 29px;
	padding-top: 14px;
	border-top: 1px solid #eaede7;
	text-align: center;
}

footer .site-credit {
	margin-left: auto;
	align-self: center;
}

@media (min-width: 1500px) {
	main {
		padding-right: clamp(48px, 5vw, 90px);
		padding-left: clamp(48px, 5vw, 90px);
	}
}

@media (max-width: 1100px) {
	aside {
		width: 205px;
	}

	main {
		margin-left: 205px;
		padding-right: 24px;
		padding-left: 24px;
	}
}

@media (max-width: 700px) {
	aside {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #252c27;
		padding: 12px 15px;
	}

	.brand {
		margin-bottom: 12px;
	}

	.brand .logo {
		width: 38px;
		height: 38px;
	}

	.module-switch {
		gap: 5px;
	}

	.module-switch button {
		flex: 1;
		justify-content: center;
		padding: 9px 7px;
		font-size: 10px;
	}

	.module-switch button:last-child {
		flex-basis: 100%;
	}

	.tabs button {
		padding: 9px 5px;
		font-size: 10px;
	}

	main {
		margin-left: 0;
		padding: 22px 15px;
	}

	main > header {
		padding-bottom: 18px;
	}

	.login-card {
		padding: 30px 24px 25px;
	}

	.login-card h1 {
		font-size: 27px;
	}

	footer {
		align-items: flex-start;
		gap: 11px;
	}

	footer .site-credit {
		margin-left: 0;
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

#module-balance.active {
	border-color: #3a4b30;
	background: #27321f;
	color: #d7f27c;
}

.task-board {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.task-row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto minmax(145px, 190px) 90px auto;
	align-items: center;
	gap: 16px;
	padding: 12px 15px;
	border: 1px solid #e1e4dd;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 3px 12px #18220e05;
}

.task-row-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.task-row-main strong {
	overflow: hidden;
	color: #30372f;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-row-main small {
	overflow: hidden;
	color: #879083;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-row-stars {
	color: #b4d34f;
	font-size: 13px;
	letter-spacing: 1px;
	white-space: nowrap;
}

.sla-on-time {
	color: #16803c !important;
}

.sla-late {
	color: #c62828 !important;
}

.sla-paused {
	color: #946200 !important;
}

.sla-unknown {
	color: #737b74 !important;
}

.task-row-sla {
	font-size: 10px !important;
	font-weight: 600;
}

.task-sla-legend {
	margin: 0 0 10px;
	color: #737b74;
	font-size: 11px;
}

.task-row-stars > span {
	margin-left: 5px;
	color: #68745c;
	font-size: 10px;
	letter-spacing: 0;
}

.task-row .task-assignment {
	min-width: 0;
}

.task-row-status {
	color: #737b74;
	font-size: 10px;
}

.task-row-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.task-row-actions button {
	padding: 7px 10px;
	font-size: 10px;
	white-space: nowrap;
}

.task-row-actions .task-open {
	width: 31px;
	height: 31px;
	padding: 6px;
	border: 1px solid #e2e7dd;
	border-radius: 5px;
}

.task-row.task-blocked {
	border-style: dashed;
}

#task-create-dialog {
	width: min(480px, calc(100vw - 32px));
	padding: 25px;
	border: 1px solid #e1e4dd;
	border-radius: 9px;
	box-shadow: 0 20px 80px #10151340;
}

#task-create-dialog::backdrop {
	background: #11161380;
}

#task-create-form {
	display: grid;
	gap: 16px;
}

#task-create-form > label,
.balance-filters label,
.star-setting {
	display: grid;
	gap: 7px;
	color: #687166;
	font-size: 11px;
}

#task-create-open {
	margin-left: 0;
	padding: 10px 13px;
	background: #202521;
	color: #fff;
}

#task-create-open:hover {
	background: #658d2c;
}

.balance-workspace {
	display: grid;
	gap: 17px;
}

.balance-toolbar,
.balance-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 21px 24px;
	border: 1px solid #e1e4dd;
	border-radius: 8px;
	background: #fff;
}

.balance-toolbar h2 {
	margin-bottom: 6px;
	font-size: 17px;
	text-transform: capitalize;
}

.balance-toolbar p,
.balance-note {
	font-size: 11px;
}

.balance-filters {
	display: flex;
	gap: 12px;
}

.balance-filters input,
.balance-filters select {
	min-width: 145px;
}

.balance-total span {
	color: #737b74;
	font-size: 12px;
}

.balance-total strong {
	color: #657e29;
	font-size: 24px;
}

.balance-table {
	overflow-x: auto;
	border: 1px solid #e1e4dd;
	border-radius: 8px;
	background: #fff;
}

.balance-table table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.balance-table th,
.balance-table td {
	padding: 15px 18px;
	border-bottom: 1px solid #edf0e9;
	font-size: 11px;
	white-space: nowrap;
}

.balance-table thead th {
	background: #f7f8f5;
	color: #7a8375;
	font-size: 9px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.balance-table tbody th {
	color: #30372f;
	font-weight: 650;
}

.balance-note {
	color: #858d80;
}

.settings-stars-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
}

.star-setting {
	grid-template-columns: minmax(0, 1fr) 150px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #edf0e9;
}

.star-setting select {
	color: #7f982d;
	font-size: 12px;
	font-weight: 650;
}

@media (max-width: 900px) {
	.task-row {
		grid-template-columns: minmax(150px, 1fr) auto minmax(120px, 160px);
		gap: 9px 12px;
	}

	.task-row-status {
		display: none;
	}

	.task-row-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

@media (max-width: 700px) {
	.task-row {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 12px;
	}

	.task-row-main {
		grid-column: 1 / -1;
	}

	.task-row-stars {
		grid-column: 1;
		grid-row: 2;
	}

	.task-row .task-assignment {
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
	}

	.task-row-actions {
		grid-column: 1 / -1;
	}

	.balance-toolbar {
		align-items: stretch;
		flex-direction: column;
		padding: 17px;
	}

	.balance-filters {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.balance-filters input,
	.balance-filters select {
		min-width: 0;
		width: 100%;
	}

	.balance-total {
		padding: 17px;
	}

	.settings-stars-list {
		grid-template-columns: 1fr;
	}

	.star-setting {
		grid-template-columns: minmax(0, 1fr) 125px;
	}
}

/* Commandes : pièce et véhicule prioritaires, compteur des commandes ouvertes. */
.module-switch #orders-nav-count{margin-left:auto;font-size:10px;padding:3px 6px;background:#ffffff18;border-radius:4px}
.module-switch .active #orders-nav-count{background:#cfe3d6;color:#467555}
.order-vehicle{display:block;font-size:14px;font-weight:700;color:var(--ink);margin-bottom:8px;overflow-wrap:anywhere}
.order-card-heading h2{font-size:21px;overflow-wrap:anywhere}
.orders-filters{flex-wrap:wrap}

.task-due-date{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:12px}.task-due-date input{width:auto;max-width:180px;padding:6px 8px;font-size:12px}

.intake-nav{display:block;padding:13px 16px;border-radius:10px;color:inherit;text-decoration:none;background:rgba(70,170,120,.12);font-weight:600;margin-bottom:6px}
