/* Variables CSS */
:root {
    --primary-blue: #0C3084;
    --primary-orange: #F79402;
    --blue-light: #1a4ba3;
    --blue-dark: #081f5a;
    --orange-light: #ffa726;
    --orange-dark: #e65100;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    font-size: 16px;
}

/* Page de connexion */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.login-header h1 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.login-form label i {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 48, 132, 0.1);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-dark), var(--primary-blue));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.btn-full {
    width: 100%;
}

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* Dashboard */
.dashboard-page {
    min-height: 100vh;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header h1 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

/* Navigation */
.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.nav-menu.show {
    left: 0;
}

/* Overlay pour le menu mobile */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--primary-blue);
    color: var(--white);
}

.nav-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.nav-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-item {
    border-bottom: 1px solid var(--gray-100);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
}

.nav-item.active .nav-link {
    background: var(--primary-blue);
    color: var(--white);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Contenu principal */
.main-content {
    flex: 1;
    padding-top: 1rem;
}

/* Onglets */
.tab-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Rapports */
.reports-section {
    padding: 0 1.5rem 1.5rem;
}

.reports-header {
    margin-bottom: 2rem;
}

.reports-header h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comparaison de périodes */
.comparison-selector {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.comparison-selector h3 {
    color: var(--gray-700);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.period-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 2px solid var(--gray-200);
}

.period-card h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.period-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.period-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.period-group label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.period-group input {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.period-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 48, 132, 0.1);
}

/* Résultats de comparaison */
.comparison-results {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    min-height: 200px;
}

.comparison-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-500);
    height: 200px;
}

.comparison-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.comparison-placeholder p {
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.5;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Section toutes les commandes */
.all-orders-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.order-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.order-filters select,
.order-filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.order-filters input {
    min-width: 200px;
}

.order-filters select:focus,
.order-filters input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 48, 132, 0.1);
}

.all-orders-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-results {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-height: 200px;
}

.report-content {
    width: 100%;
}

.report-header h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-stat {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.report-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.report-stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Comparaison des résultats */
.comparison-content {
    width: 100%;
}

.comparison-header h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-period {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
}

.comparison-period h4 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-period-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-orange);
}

.comparison-stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.comparison-stat-value {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.125rem;
}

.comparison-summary {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.comparison-summary h4 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.125rem;
}

.comparison-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.summary-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.report-orders {
    margin-top: 2rem;
}

.report-orders h4 {
    color: var(--gray-700);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-orange);
}

.report-order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-order-info strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.report-order-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.report-order-total {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.125rem;
}

.no-orders {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 2rem;
}

/* Badge nouveau */
.new-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Statistiques */
.stats-section {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--success), #34d399);
}

.stat-content h3 {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Filtres */
.filters-section {
    padding: 0 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filters-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 48, 132, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Commandes */
.orders-section {
    padding: 0 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-info h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.order-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-hold {
    background: #fef3c7;
    color: #92400e;
}

.status-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-info i {
    color: var(--primary-blue);
    width: 16px;
}

.order-total {
    text-align: right;
}

.order-total h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.order-total p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-selector select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 0.875rem;
}

.status-selector select option:disabled {
    color: var(--gray-400);
    background: var(--gray-100);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

/* Détails de commande */
.order-details-modal {
    max-width: 600px;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-blue);
}

.detail-item strong {
    color: var(--gray-700);
    font-weight: 600;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.item-info h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.item-quantity {
    color: var(--primary-blue);
    font-weight: 600;
    text-align: center;
}

.item-price {
    color: var(--primary-blue);
    font-weight: 700;
    text-align: right;
}

.cost-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cost-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary-blue);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-blue);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.cost-row.discount {
    color: var(--success);
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        width: 280px;
    }
    
    .stats-section,
    .filters-section,
    .orders-section,
    .reports-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Comparaison de périodes mobile */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .period-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-group {
        width: 100%;
    }
    
    /* Section header mobile */
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-filters input {
        min-width: auto;
        width: 100%;
    }
    
    /* Badge nouveau mobile */
    .new-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-total {
        text-align: left;
    }
    
    .order-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-selector select {
        width: 100%;
    }
    
    .item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .item-quantity,
    .item-price {
        text-align: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
} 