/* =========================
   1. RESET & BASE
========================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	background: var(--bg-main);
	color: var(--text-main);
	overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

/* =========================
   2. VARIABLES – LIGHT
========================= */
:root {
	/* Backgrounds */
	--bg-main: #f4f6f8;
	--bg-surface: #ffffff;
	--bg-muted: #fafafa;
	--bg-hover: #f1f5f9;

	/* Text */
	--text-main: #0f172a;
	--text-muted: #64748b;
	--text-light: #94a3b8;
	--text-inverse: #ffffff;

	/* Brand */
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--primary-light: #dbeafe;
	--secondary: #64748b;
	--secondary-hover: #475569;
	--accent: #0ea5e9;
	--accent-hover: #0284c7;

	/* Status */
	--success: #16a34a;
	--success-light: #dcfce7;
	--warning: #d97706;
	--warning-light: #fef3c7;
	--error: #dc2626;
	--error-light: #fee2e2;
	--info: #0284c7;
	--info-light: #e0f2fe;

	/* Borders */
	--border-color: #e2e8f0;
	--border-color-strong: #cbd5e1;

	/* Radius */
	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
	--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
	--shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;

	/* Transitions */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

	/* Z-index */
	--z-dropdown: 1000;
	--z-sticky: 1020;
	--z-fixed: 1030;
	--z-modal-backdrop: 1040;
	--z-modal: 1050;
	--z-popover: 1060;
	--z-tooltip: 1070;
}

/* =========================
   3. VARIABLES – DARK
========================= */
@media (prefers-color-scheme: dark) {
	:root {
		--bg-main: #0b0f14;
		--bg-surface: #131922;
		--bg-muted: #0f1520;
		--bg-hover: #1a2332;

		--text-main: #e5e7eb;
		--text-muted: #9ca3af;
		--text-light: #64748b;
		--text-inverse: #0f172a;

		--primary: #3b82f6;
		--primary-hover: #2563eb;
		--primary-light: #1e3a5f;
		--secondary: #94a3b8;
		--secondary-hover: #cbd5e1;
		--accent: #38bdf8;
		--accent-hover: #0ea5e9;

		--success: #22c55e;
		--success-light: #14532d;
		--warning: #f59e0b;
		--warning-light: #78350f;
		--error: #ef4444;
		--error-light: #7f1d1d;
		--info: #0ea5e9;
		--info-light: #0c4a6e;

		--border-color: #1e293b;
		--border-color-strong: #334155;

		--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
		--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
		--shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);
		--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
		--shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);
	}
}

/* Override manuel */
[data-theme="dark"] {
	--bg-main: #0b0f14;
	--bg-surface: #131922;
	--bg-muted: #0f1520;
	--bg-hover: #1a2332;

	--text-main: #e5e7eb;
	--text-muted: #9ca3af;
	--text-light: #64748b;
	--text-inverse: #0f172a;

	--primary: #3b82f6;
	--primary-hover: #2563eb;
	--primary-light: #1e3a5f;
	--secondary: #94a3b8;
	--secondary-hover: #cbd5e1;
	--accent: #38bdf8;
	--accent-hover: #0ea5e9;

	--success: #22c55e;
	--success-light: #14532d;
	--warning: #f59e0b;
	--warning-light: #78350f;
	--error: #ef4444;
	--error-light: #7f1d1d;
	--info: #0ea5e9;
	--info-light: #0c4a6e;

	--border-color: #1e293b;
	--border-color-strong: #334155;

	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);
	--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
	--shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* =========================
   4. LAYOUT
========================= */
.app:has(.sidebar) {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 100vh;
}

.app:not(:has(.sidebar)) {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100vh;
}

.sidebar {
	background: var(--bg-surface);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-lg);
	border-right: 1px solid var(--border-color);
	overflow-y: auto;
	position: sticky;
	top: 0;
	height: 100vh;
}

.header,
header {
	background: var(--bg-surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: var(--spacing-md) var(--spacing-lg);
	position: sticky;
	top: 0;
	z-index: var(--z-sticky);
	border-bottom: 1px solid var(--border-color);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.8);
}

/* Desktop: full-width band, content stays aligned with container */
@media (min-width: 769px) {

	.header,
	header {
		background: transparent;
		box-shadow: none;
		border-bottom: none;
	}

	.header::before,
	header::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
		height: 100%;
		background: rgba(255, 255, 255, 0.8);
		backdrop-filter: blur(10px);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
		border-bottom: 1px solid var(--border-color);
		z-index: -1;
	}

	.app .header::before,
	.app header::before {
		width: 100%;
	}
}

[data-theme="dark"] .header,
[data-theme="dark"] header {
	background: rgba(19, 25, 34, 0.8);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (min-width: 769px) {

	[data-theme="dark"] .header,
	[data-theme="dark"] header {
		background: transparent;
		box-shadow: none;
	}

	[data-theme="dark"] .header::before,
	[data-theme="dark"] header::before {
		background: rgba(19, 25, 34, 0.8);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}
}

@media (min-width: 769px) and (prefers-color-scheme: dark) {

	.header::before,
	header::before {
		background: rgba(19, 25, 34, 0.8);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}
}

/* Menu wrapper: toggle only when items don't fit on one line */
.menu-wrapper {
	display: flex;
	align-items: center;
	position: relative;
}

/* Hide menu content until JS has run (avoids flash before collapse) */
body:not(.menu-ready) .menu-wrapper>div:last-child {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.menu-toggle {
	display: none;
	padding: 0.5em 0.75em;
	font-size: 1.25rem;
	line-height: 1;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-main);
	cursor: pointer;
	transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle:hover {
	background: var(--bg-hover, rgba(0, 0, 0, 0.05));
	transform: scale(1.05);
}

.menu-wrapper.collapsed .menu-toggle {
	display: block;
}

.menu-wrapper.collapsed>div:last-child {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: var(--spacing-sm);
	padding: var(--spacing-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	z-index: var(--z-sticky);
	gap: var(--spacing-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
	pointer-events: none;
}

.menu-wrapper.collapsed.menu-open>div:last-child {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

@media (prefers-color-scheme: dark) {

	.header,
	header {
		background: rgba(19, 25, 34, 0.8);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}
}

.main,
main {
	padding: var(--spacing-lg);
	max-width: 100%;
	overflow-x: hidden;
}

.container {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
}

/* =========================
   FOOTER
========================= */
.footer,
footer {
	width: 100%;
	margin-top: auto;
	padding: var(--spacing-lg);
	border-top: 1px solid var(--border-color);
	background: var(--bg-muted);
	text-align: center;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.footer p,
footer p {
	max-width: 1200px;
	margin: 0 auto;
	line-height: 1.6;
}

.footer a,
footer a {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer a:hover,
footer a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
	.container {
		padding: 0;
	}

	.app {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: none;
		position: fixed;
		left: 0;
		top: 0;
		width: 280px;
		z-index: var(--z-modal);
		transform: translateX(-100%);
		transition: transform var(--transition-base);
	}

	.sidebar.open {
		display: block;
		transform: translateX(0);
	}

	.main,
	main {
		padding: var(--spacing-md);
	}

	.header,
	header {
		padding: var(--spacing-sm) var(--spacing-md);
	}
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
	.app {
		grid-template-columns: 240px 1fr;
	}

	.sidebar {
		padding: var(--spacing-md);
	}
}

/* =========================
   5. TYPOGRAPHIE
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	line-height: 1.2;
	color: var(--text-main);
	margin-bottom: var(--spacing-md);
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

h2 {
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

h4 {
	font-size: 1.25rem;
	font-weight: 600;
}

h5 {
	font-size: 1.125rem;
	font-weight: 600;
}

h6 {
	font-size: 1rem;
	font-weight: 600;
}

p {
	color: var(--text-main);
	margin-bottom: var(--spacing-md);
}

.text-muted {
	color: var(--text-muted);
}

.text-light {
	color: var(--text-light);
}

.text-inverse {
	color: var(--text-inverse);
}

a:not(.button) {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover:not(.button) {
	color: var(--primary-hover);
	text-decoration: underline;
}

a:focus-visible:not(.button) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

ul,
ol {
	margin-left: var(--spacing-lg);
	margin-bottom: var(--spacing-md);
}

li {
	margin-bottom: var(--spacing-xs);
}

code {
	background: var(--bg-muted);
	padding: 2px 6px;
	border-radius: var(--radius-xs);
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9em;
	color: var(--error);
}

pre {
	background: var(--bg-muted);
	padding: var(--spacing-md);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin-bottom: var(--spacing-md);
}

pre code {
	background: none;
	padding: 0;
	color: var(--text-main);
}

/* =========================
   6. CARTES
========================= */
.card {
	background: var(--bg-surface);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
	transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
	border-color: var(--border-color-strong);
}

.card-compact {
	padding: var(--spacing-md);
}

.card-flat {
	box-shadow: none;
	border: 1px solid var(--border-color);
}

.card-flat:hover {
	box-shadow: var(--shadow-sm);
	transform: none;
}

/* =========================
   7. BOUTONS
========================= */
.button,
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	border: none;
	border-radius: var(--radius-sm);
	padding: 10px 20px;
	font-weight: 500;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all var(--transition-base);
	text-decoration: none;
	white-space: nowrap;
	user-select: none;
	position: relative;
	overflow: hidden;
}

.button:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.button:disabled,
button:disabled,
.button[disabled],
button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.button-primary {
	background: var(--primary);
	color: var(--text-inverse);
	box-shadow: var(--shadow-sm);
}

.button-primary:hover:not(:disabled) {
	background: var(--primary-hover);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.button-primary:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.button-secondary {
	background: var(--bg-surface);
	color: var(--text-main);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
}

.button-secondary:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-color-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.button-danger {
	background: var(--error);
	color: var(--text-inverse);
	box-shadow: var(--shadow-sm);
}

.button-danger:hover:not(:disabled) {
	background: #b91c1c;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.button-outline {
	background: transparent;
	color: var(--primary);
	border: 1px solid var(--primary);
}

.button-outline:hover:not(:disabled) {
	background: var(--primary);
	color: var(--text-inverse);
}

.button-ghost {
	background: transparent;
	color: var(--text-main);
	border: none;
	box-shadow: none;
}

.button-ghost:hover:not(:disabled) {
	background: var(--bg-hover);
}

.button-sm {
	padding: 6px 12px;
	font-size: 0.875rem;
}

.button-lg {
	padding: 14px 28px;
	font-size: 1rem;
}

.button-full {
	width: 100%;
}

/* =========================
   8. FORMULAIRES
========================= */
.form-container {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}

.form-container:not(:last-child) {
	margin-bottom: var(--spacing-md);
}

.form,
form {
	max-width: 600px;
	width: 100%;
}

.form-wide {
	max-width: 800px;
}

.form-narrow {
	max-width: 400px;
}

.form-full {
	max-width: 100%;
}

.form-group {
	margin-bottom: var(--spacing-md);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
}

.form-group:has(input[type="checkbox"]),
.form-group:has(input[type="radio"]) {
	flex-direction: row;
	align-items: center;
}

.form-group:has(input[type="checkbox"]) label,
.form-group:has(input[type="radio"]) label {
	margin-bottom: 0;
}

label {
	display: block;
	font-weight: 500;
	color: var(--text-main);
	margin-bottom: var(--spacing-xs);
	font-size: 0.9375rem;
}

label.required::after {
	content: ' *';
	color: var(--error);
}

input,
select,
textarea {
	width: 100%;
	background: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	color: var(--text-main);
	font-size: 0.9375rem;
	transition: all var(--transition-base);
}

input:hover,
select:hover,
textarea:hover {
	border-color: var(--border-color-strong);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
	background: var(--bg-muted);
	color: var(--text-muted);
	cursor: not-allowed;
	opacity: 0.6;
}

input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
}

input.error,
select.error,
textarea.error {
	border-color: var(--error);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
	color: var(--error);
	font-size: 0.875rem;
	margin-top: var(--spacing-xs);
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.form-help {
	color: var(--text-muted);
	font-size: 0.875rem;
	margin-top: var(--spacing-xs);
}

.checkbox,
.radio,
input[type="checkbox"],
input[type="radio"] {
	width: 1em;
	height: 1em;
	margin: 0;
	margin-right: var(--spacing-sm);
	vertical-align: baseline;
	cursor: pointer;
	flex-shrink: 0;
}

.checkbox-label,
.radio-label,
label[for="checkbox"],
label[for="radio"] {
	display: inline-flex;
	align-items: baseline;
	gap: var(--spacing-sm);
	cursor: pointer;
	font-weight: normal;
}

/* =========================
   9. TABLES MÉTIER
========================= */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-color);
}

th,
td {
	padding: var(--spacing-md);
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

th {
	background: var(--bg-muted);
	font-weight: 600;
	color: var(--text-main);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

tbody tr {
	background: var(--bg-surface);
	transition: background var(--transition-fast);
}

tbody tr:hover {
	background: var(--bg-hover);
}

tbody tr:last-child td {
	border-bottom: none;
}

.table-striped tbody tr:nth-child(even) {
	background: var(--bg-muted);
}

.table-striped tbody tr:nth-child(even):hover {
	background: var(--bg-hover);
}

.table-compact th,
.table-compact td {
	padding: var(--spacing-sm) var(--spacing-md);
}

.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
	.table-responsive {
		display: block;
	}

	table {
		min-width: 600px;
	}
}

/* =========================
   10. BADGES & ALERTES
========================= */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.badge-primary {
	background: var(--primary-light);
	color: var(--primary);
}

.badge-success {
	background: var(--success-light);
	color: var(--success);
}

.badge-warning {
	background: var(--warning-light);
	color: var(--warning);
}

.badge-error {
	background: var(--error-light);
	color: var(--error);
}

.badge-info {
	background: var(--info-light);
	color: var(--info);
}

.alert {
	padding: var(--spacing-md);
	border-radius: var(--radius-md);
	border-left: 4px solid;
	margin-bottom: var(--spacing-md);
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-sm);
}

.alert-success {
	background: var(--success-light);
	border-color: var(--success);
	color: var(--success);
}

.alert-warning {
	background: var(--warning-light);
	border-color: var(--warning);
	color: var(--warning);
}

.alert-error {
	background: var(--error-light);
	border-color: var(--error);
	color: var(--error);
}

.alert-info {
	background: var(--info-light);
	border-color: var(--info);
	color: var(--info);
}

/* =========================
   11. UTILITAIRES
========================= */
/* Shadows */
.shadow-xs {
	box-shadow: var(--shadow-xs);
}

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

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

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

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

/* Radius */
.radius-xs {
	border-radius: var(--radius-xs);
}

.radius-sm {
	border-radius: var(--radius-sm);
}

.radius-md {
	border-radius: var(--radius-md);
}

.radius-lg {
	border-radius: var(--radius-lg);
}

.radius-full {
	border-radius: var(--radius-full);
}

/* Spacing - Margin Top */
.mt-0 {
	margin-top: 0;
}

.mt-xs {
	margin-top: var(--spacing-xs);
}

.mt-sm {
	margin-top: var(--spacing-sm);
}

.mt-md {
	margin-top: var(--spacing-md);
}

.mt-lg {
	margin-top: var(--spacing-lg);
}

.mt-xl {
	margin-top: var(--spacing-xl);
}

.mt-2xl {
	margin-top: var(--spacing-2xl);
}

/* Spacing - Margin Bottom */
.mb-0 {
	margin-bottom: 0;
}

.mb-xs {
	margin-bottom: var(--spacing-xs);
}

.mb-sm {
	margin-bottom: var(--spacing-sm);
}

.mb-md {
	margin-bottom: var(--spacing-md);
}

.mb-lg {
	margin-bottom: var(--spacing-lg);
}

.mb-xl {
	margin-bottom: var(--spacing-xl);
}

.mb-2xl {
	margin-bottom: var(--spacing-2xl);
}

/* Spacing - Margin Left/Right */
.ml-0 {
	margin-left: 0;
}

.ml-auto {
	margin-left: auto;
}

.mr-auto {
	margin-right: auto;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

/* Spacing - Padding */
.p-0 {
	padding: 0;
}

.p-xs {
	padding: var(--spacing-xs);
}

.p-sm {
	padding: var(--spacing-sm);
}

.p-md {
	padding: var(--spacing-md);
}

.p-lg {
	padding: var(--spacing-lg);
}

.p-xl {
	padding: var(--spacing-xl);
}

/* Display */
.d-none {
	display: none;
}

.d-block {
	display: block;
}

.d-inline {
	display: inline;
}

.d-inline-block {
	display: inline-block;
}

.d-flex {
	display: flex;
}

.d-grid {
	display: grid;
}

/* Flexbox */
.flex-row {
	flex-direction: row;
}

.flex-column {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

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

.items-start {
	align-items: flex-start;
}

.items-end {
	align-items: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.gap-xs {
	gap: var(--spacing-xs);
}

.gap-sm {
	gap: var(--spacing-sm);
}

.gap-md {
	gap: var(--spacing-md);
}

.gap-lg {
	gap: var(--spacing-lg);
}

/* Width */
.w-full {
	width: 100%;
}

.w-auto {
	width: auto;
}

/* Text */
.text-center {
	text-align: center;
}

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

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

.text-bold {
	font-weight: 700;
}

.text-semibold {
	font-weight: 600;
}

.text-medium {
	font-weight: 500;
}

.text-sm {
	font-size: 0.875rem;
}

.text-xs {
	font-size: 0.75rem;
}

/* Overflow */
.overflow-hidden {
	overflow: hidden;
}

.overflow-auto {
	overflow: auto;
}

/* Position */
.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.sticky {
	position: sticky;
}

/* Cursor */
.cursor-pointer,
[onclick] {
	cursor: pointer;
}

.cursor-not-allowed {
	cursor: not-allowed;
}

/* Visibility */
.visible {
	visibility: visible;
}

.invisible {
	visibility: hidden;
}

/* Screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}