/* =========================================================================
 * L06 · Lateral clar — barra lateral blanca amb objectius + àrea principal en files
 * ========================================================================= */
.l06 { display: flex; min-height: 100vh; }

.l06 .side {
    flex: 0 0 264px;
    display: flex; flex-direction: column; gap: 26px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 22px 18px;
    background: #fff;
    border-right: 1px solid var(--panel-border);
}
.l06 .side__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 8px; }
.l06 .side nav { display: flex; flex-direction: column; gap: 2px; }
.l06 .side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.l06 .side nav a:hover { background: var(--b-50); color: var(--ba-blue); }
.l06 .side nav a.on { background: var(--b-50); color: var(--ba-blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--ba-blue); }

/* Objectius amb avanç */
.l06 .goals { display: flex; flex-direction: column; gap: 12px; }
.l06 .goal { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; font-size: 13px; }
.l06 .goal__top { display: flex; justify-content: space-between; color: var(--ink-2); }
.l06 .goal__top b { color: var(--ink); font-weight: 600; }
.l06 .goal .progress__bar { height: 5px; }
.l06 .goal:nth-child(1) .progress__bar > i { background: var(--b-800); }
.l06 .goal:nth-child(2) .progress__bar > i { background: var(--b-700); }
.l06 .goal:nth-child(3) .progress__bar > i { background: var(--b-500); }
.l06 .goal:nth-child(4) .progress__bar > i { background: var(--b-400); }
.l06 .goal:nth-child(n+5) .progress__bar > i { background: var(--b-300); }

.l06 .help { margin-top: auto; padding: 16px; border-radius: var(--r-md); background: linear-gradient(150deg, var(--b-700), var(--b-500)); color: #fff; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.l06 .help b { font-size: 15px; }
.l06 .help a { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ba-blue); font-weight: 600; }

/* Àrea principal */
.l06 .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); padding: 22px 28px 40px; }
.l06 .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.l06 .crumb { font-size: 13px; color: var(--ink-3); }
.l06 .crumb b { color: var(--ba-blue); font-weight: 600; }
.l06 .top h1 { font-size: 28px; font-weight: 300; margin-top: 2px; }

/* KPIs amb filet de color */
.l06 .kpis6 { display: flex; gap: var(--gap); flex-wrap: wrap; }
.l06 .kpis6 > .panel { flex: 1 1 200px; gap: 8px; border-top: 4px solid var(--b-800); }
.l06 .kpis6 > .panel:nth-child(2) { border-top-color: var(--b-700); }
.l06 .kpis6 > .panel:nth-child(3) { border-top-color: var(--b-500); }
.l06 .kpis6 > .panel:nth-child(4) { border-top-color: var(--b-400); }
.l06 .kpis6 .kpi__value { font-size: 34px; }

@media (max-width: 1000px) {
    .l06 { flex-direction: column; }
    .l06 .side { position: static; height: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--panel-border); }
    .l06 .side nav { flex-direction: row; flex-wrap: wrap; }
    .l06 .goals, .l06 .help, .l06 .side__label { display: none; }
    .l06 .main { padding: 18px 16px 32px; }
}
