.dashboard { padding: 40px 0 80px; }
.dashboard__layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .dashboard__layout { grid-template-columns: 240px 1fr; align-items: start; } }

/* SIDEBAR */
.sidebar { background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(14,40,65,.07); overflow: hidden; position: sticky; top: 96px; }
.sidebar__user { padding: 24px; border-bottom: 1px solid rgba(14,40,65,.07); display: flex; align-items: center; gap: 14px; }
.sidebar__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--opeq-blue); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; flex: 0 0 48px; text-transform: uppercase; }
.sidebar__name { font-weight: 800; font-size: 15px; color: var(--opeq-navy); line-height: 1.2; }
.sidebar__role { font-size: 12px; color: var(--fg-muted); }
.sidebar__nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar__link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--fg-muted); cursor: pointer; transition: background .12s, color .12s; text-decoration: none; border: none; background: none; width: 100%; text-align: left; font-family: var(--font-body); }
.sidebar__link:hover { background: var(--opeq-cream); color: var(--opeq-navy); }
.sidebar__link.active { background: #e7f6fc; color: var(--opeq-blue); }
.sidebar__link svg { flex: 0 0 18px; }
.sidebar__logout { padding: 12px; border-top: 1px solid rgba(14,40,65,.07); }

/* WELCOME BANNER */
.welcome-banner { background: linear-gradient(135deg, var(--opeq-navy) 0%, #1c3d5e 100%); border-radius: 24px; padding: 32px 36px; color: #fff; display: flex; align-items: center; gap: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.welcome-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(40,170,222,.25) 0%, transparent 70%); pointer-events: none; }
.welcome-banner__text { flex: 1; position: relative; z-index: 1; }
.welcome-banner__hello { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,243,240,.6); font-weight: 700; margin-bottom: 8px; }
.welcome-banner__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px,3vw,34px); line-height: 1.05; text-transform: uppercase; }
.welcome-banner__title span { color: var(--opeq-blue); }
.welcome-banner__sub { margin-top: 12px; font-size: 14px; color: rgba(245,243,240,.78); line-height: 1.55; max-width: 480px; }
.welcome-banner__impact { flex: 0 0 auto; background: rgba(245,243,240,.08); border: 1px solid rgba(245,243,240,.12); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 200px; position: relative; z-index: 1; }
.welcome-impact__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.welcome-impact__num { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--opeq-blue); line-height: 1; }
.welcome-impact__label { font-size: 11px; color: rgba(245,243,240,.7); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 760px) { .welcome-banner { flex-direction: column; align-items: flex-start; padding: 24px; } .welcome-banner__impact { width: 100%; } }

/* ACTIVE ORDER TIMELINE */
.active-order { background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(14,40,65,.07); padding: 26px 28px; margin-bottom: 24px; }
.active-order__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.active-order__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--opeq-navy); text-transform: uppercase; letter-spacing: -.005em; }
.active-order__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--opeq-blue); position: relative; flex: 0 0 10px; }
.active-order__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--opeq-blue); opacity: .4; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .active-order__pulse::after { animation: none; } }
.active-order__ref { font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.active-order__eta { font-size: 13px; color: var(--opeq-green-deep); background: #e6f5e0; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.tracker__step { position: relative; text-align: center; padding-top: 32px; }
.tracker__dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e6e9ee; border: 3px solid #fff; box-shadow: 0 0 0 2px #e6e9ee; z-index: 2; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }
.tracker__step--done .tracker__dot { background: var(--opeq-green-deep); box-shadow: 0 0 0 2px var(--opeq-green-deep); }
.tracker__step--current .tracker__dot { background: var(--opeq-blue); box-shadow: 0 0 0 2px var(--opeq-blue); animation: tracker-pulse 1.8s ease-in-out infinite; }
@keyframes tracker-pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--opeq-blue); } 50% { box-shadow: 0 0 0 6px rgba(40,170,222,.25); } }
@media (prefers-reduced-motion: reduce) { .tracker__step--current .tracker__dot { animation: none; } }
.tracker__line { position: absolute; top: 11px; left: 50%; right: -50%; height: 3px; background: #e6e9ee; z-index: 1; }
.tracker__step:last-child .tracker__line { display: none; }
.tracker__step--done .tracker__line { background: var(--opeq-green-deep); }
.tracker__label { font-size: 13px; font-weight: 700; color: var(--opeq-navy); margin-bottom: 4px; }
.tracker__date { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.tracker__step--pending .tracker__label, .tracker__step--pending .tracker__date { color: rgba(14,40,65,.35); }
@media (max-width: 600px) { .tracker { grid-template-columns: 1fr; gap: 16px; } .tracker__step { text-align: left; padding-top: 0; padding-left: 32px; } .tracker__dot { top: 2px; left: 0; transform: none; } .tracker__line { top: 24px; left: 10px; right: auto; bottom: -16px; width: 3px; height: auto; } }

/* MAIN CONTENT */
.main-content { display: flex; flex-direction: column; gap: 24px; }

/* QUICK STATS */
.quick-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .quick-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: 0 2px 8px rgba(14,40,65,.06); }
.stat-card__num { font-family: var(--font-display); font-weight: 900; font-size: 36px; color: var(--opeq-navy); line-height: 1; margin-bottom: 6px; }
.stat-card__label { font-size: 13px; color: var(--fg-muted); font-weight: 500; }

/* SECTION CARD */
.section-card { background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(14,40,65,.07); overflow: hidden; }
.section-card__header { padding: 24px 28px; border-bottom: 1px solid rgba(14,40,65,.07); display: flex; align-items: center; justify-content: space-between; }
.section-card__title { font-family: var(--font-display); font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--opeq-navy); }
.section-card__body { padding: 0; }

/* ORDERS TABLE */
.orders-list { display: flex; flex-direction: column; }
.order-row { display: flex; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid rgba(14,40,65,.06); transition: background .1s; cursor: pointer; flex-wrap: wrap; }
.order-row:last-child { border-bottom: none; }
.order-row:hover { background: #f8fcff; }
.order-ref { font-weight: 700; font-size: 14px; color: var(--opeq-navy); flex: 0 0 130px; }
.order-product { font-size: 13px; color: var(--fg-muted); flex: 1 1 180px; }
.order-date { font-size: 13px; color: var(--fg-muted); flex: 0 0 90px; }
.order-amount { font-weight: 700; font-size: 14px; color: var(--opeq-navy); flex: 0 0 70px; text-align: right; }
.order-status { flex: 0 0 auto; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.status-pill--traitement { background: #fefbe6; color: #8a7010; }
.status-pill--traitement::before { background: #8a7010; }
.status-pill--preparation { background: #e7f6fc; color: var(--opeq-blue); }
.status-pill--preparation::before { background: var(--opeq-blue); }
.status-pill--expediee { background: #f0eaff; color: #6b3fa0; }
.status-pill--expediee::before { background: #6b3fa0; }
.status-pill--livree { background: #e6f5e0; color: var(--opeq-green-deep); }
.status-pill--livree::before { background: var(--opeq-green-deep); }
.status-pill--soumise { background: #fefbe6; color: #8a7010; }
.status-pill--soumise::before { background: #8a7010; }
.status-pill--revision { background: #e7f6fc; color: var(--opeq-blue); }
.status-pill--revision::before { background: var(--opeq-blue); }
.status-pill--approuvee { background: #e6f5e0; color: var(--opeq-green-deep); }
.status-pill--approuvee::before { background: var(--opeq-green-deep); }

/* ORDER DETAIL PANEL */
.order-detail { display: none; padding: 20px 28px; background: var(--opeq-cream); border-top: 1px solid rgba(14,40,65,.07); }
.order-detail.open { display: block; animation: fadeIn .2s ease; }
.order-timeline { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 16px; }
.timeline-step { flex: 1 1 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; }
.timeline-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 60%; width: 80%; height: 2px; background: rgba(14,40,65,.1); }
.timeline-step.done:not(:last-child)::after { background: var(--opeq-green-deep); }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(14,40,65,.15); background: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.timeline-step.done .timeline-dot { background: var(--opeq-green-deep); border-color: var(--opeq-green-deep); }
.timeline-step.current .timeline-dot { background: var(--opeq-blue); border-color: var(--opeq-blue); box-shadow: 0 0 0 4px rgba(40,170,222,.2); }
.timeline-label { font-size: 11px; font-weight: 600; color: var(--fg-muted); line-height: 1.3; }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--opeq-navy); }

/* DEMANDS */
.demands-list { display: flex; flex-direction: column; }
.demand-row { display: flex; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid rgba(14,40,65,.06); flex-wrap: wrap; }
.demand-row:last-child { border-bottom: none; }
.demand-ref { font-weight: 700; font-size: 14px; color: var(--opeq-navy); flex: 0 0 140px; }
.demand-type { font-size: 13px; color: var(--fg-muted); flex: 1 1 160px; }
.demand-date { font-size: 13px; color: var(--fg-muted); flex: 0 0 90px; }

/* QUICK ACTIONS */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-card { background: #fff; border-radius: 16px; padding: 24px 20px; box-shadow: 0 2px 8px rgba(14,40,65,.06); text-decoration: none; color: var(--opeq-navy); border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 12px; }
.action-card:hover { border-color: var(--opeq-blue); box-shadow: 0 4px 16px rgba(40,170,222,.12); }
.action-card__icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.action-card__icon img { width: 30px; height: 30px; object-fit: contain; }
.action-card__title { font-weight: 800; font-size: 15px; color: var(--opeq-navy); }
.action-card__desc { font-size: 13px; color: var(--fg-muted); }

/* FOOTER */

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Certs band */
.partner-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 140px; }
