/* Sorti de attributions.php le 19/09/2026.
 *
 * Les feuilles etaient ecrites dans les pages, ce qui obligeait la
 * politique de securite a autoriser 'unsafe-inline' sur style-src : toute
 * injection de HTML devenait alors une injection de style. En fichier, le
 * navigateur peut les mettre en cache, et la politique peut se fermer.
 *
 * Deplace sans une modification : ce qui suit est le bloc d'origine. */

.topbar-icon-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:46px;padding:5px 6px;border-radius:8px;color:var(--grey-500);text-decoration:none;transition:background .15s,color .15s;flex-shrink:0;font-size:.62rem;font-weight:600;letter-spacing:.01em;line-height:1;}
.topbar-icon-btn:hover,.topbar-icon-btn.active{background:var(--grey-100);color:var(--psg-navy);}
.topbar-icon-btn svg{width:22px;height:22px;flex-shrink:0;}
.topbar-sep{width:1px;height:36px;background:var(--grey-200);margin:0 4px;flex-shrink:0;}
.topbar-user-trigger{display:flex;align-items:center;gap:7px;cursor:pointer;padding:6px 10px;border-radius:8px;color:var(--grey-700);font-size:.875rem;font-weight:500;position:relative;transition:background .15s;white-space:nowrap;user-select:none;}
.topbar-user-trigger:hover{background:var(--grey-100);}
.topbar-user-trigger>.u-icon{width:18px;height:18px;color:var(--grey-400);}
.topbar-user-trigger>.chevron{width:14px;height:14px;color:var(--grey-400);transition:transform .2s;}
.topbar-user-trigger.open>.chevron{transform:rotate(180deg);}
.topbar-user-dd{display:none;position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:1px solid var(--grey-200);border-radius:10px;padding:8px;min-width:190px;box-shadow:0 8px 24px rgba(0,0,0,.1);z-index:1000;}
.topbar-user-dd.open{display:block;}
.topbar-user-dd-role{padding:8px 10px 6px;font-size:.7rem;color:var(--grey-400);font-weight:600;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--grey-100);margin-bottom:4px;}
.topbar-user-dd a{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;color:var(--grey-600);text-decoration:none;font-size:.875rem;transition:background .15s,color .15s;}
.topbar-user-dd a:hover{background:var(--grey-100);color:var(--grey-900);}
.topbar-user-dd a svg{width:16px;height:16px;}

/* ── full-viewport lock ── */
html,body{height:100%;overflow:hidden;}
.app{height:100vh;overflow:hidden;}
.main{height:100vh;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
.attr-shell{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}

/* ── page header ── */
.attr-page-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-5) var(--space-8) 0;flex-shrink:0;gap:var(--space-3);}
.attr-page-kicker{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--psg-gold-dark,#b8860b);margin-bottom:2px;}
.attr-page-title{font-size:1.5rem;font-weight:900;color:var(--psg-navy);margin:0;line-height:1.1;}
.attr-page-sub{font-size:.8rem;color:var(--grey-400);font-weight:600;margin-top:3px;}

/* ── scrollable content ── */
.attr-content{flex:1;min-height:0;overflow-y:auto;padding:var(--space-5) var(--space-8);background:var(--grey-100);}

/* source cards */
.attr-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-3);margin-bottom:var(--space-5);}
@media(max-width:1400px){.attr-cards{grid-template-columns:repeat(3,1fr);}}
@media(max-width:900px){.attr-cards{grid-template-columns:repeat(2,1fr);}}
.attr-card{border-radius:12px;padding:var(--space-4);color:#fff;position:relative;overflow:hidden;}
.attr-card-0{background:linear-gradient(135deg,#001a2f,#003d6b);}
.attr-card-1{background:linear-gradient(135deg,#166534,#16a34a);}
.attr-card-2{background:linear-gradient(135deg,#312e81,#4f46e5);}
.attr-card-3{background:linear-gradient(135deg,#374151,#6b7280);}
.attr-card-4{background:linear-gradient(135deg,#92400e,#d97706);}
.attr-card-5{background:linear-gradient(135deg,#134e4a,#0d9488);}
.attr-card-empty{background:var(--grey-50);color:var(--grey-400);}
.attr-card-sales{font-size:1.4rem;font-weight:800;line-height:1;}
.attr-card-label{font-size:.72rem;font-weight:700;opacity:.85;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.attr-card-orders{font-size:.7rem;opacity:.7;margin-top:2px;}
.attr-card-share{font-size:.68rem;opacity:.65;margin-top:8px;}
.attr-card-bar{height:3px;background:rgba(255,255,255,.2);border-radius:999px;margin-top:10px;overflow:hidden;}
.attr-card-bar-fill{height:100%;background:rgba(255,255,255,.6);border-radius:999px;transition:width .6s ease;}

/* filters */
.attr-filters{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-5);border-bottom:1px solid var(--grey-100);flex-wrap:wrap;}

/* table */
.attr-table{width:100%;border-collapse:collapse;font-size:.82rem;}
.attr-table th{padding:9px 12px;font-weight:800;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;color:var(--grey-500);border-bottom:2px solid var(--grey-100);text-align:left;white-space:nowrap;}
.attr-table td{padding:9px 12px;border-bottom:1px solid var(--grey-50);vertical-align:middle;color:var(--grey-700);font-weight:600;}
.attr-table tbody tr:hover{background:var(--grey-50);}
.attr-table tbody tr:last-child td{border-bottom:0;}
.order-id{font-weight:800;color:var(--psg-navy);font-family:monospace;}
.attr-badge{display:inline-block;background:var(--grey-100);color:var(--grey-600);border-radius:6px;padding:2px 7px;font-size:.68rem;font-weight:700;white-space:nowrap;margin:1px 2px 1px 0;}
.attr-badge-src{background:#dbeafe;color:#1e40af;}
.attr-badge-med{background:#dcfce7;color:#166534;}
.attr-badge-cmp{background:#fef3c7;color:#92400e;}
.attr-empty{padding:60px;text-align:center;color:var(--grey-400);font-weight:700;}
.totals-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3);margin-bottom:var(--space-5);}
.totals-stat{background:#fff;border:1px solid #d9d9d9;border-radius:12px;padding:var(--space-4);position:relative;overflow:hidden;}
.totals-stat::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--sa,var(--psg-navy));opacity:.3;}
.totals-stat-label{font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--grey-500);}
.totals-stat-value{font-size:1.3rem;font-weight:800;color:var(--psg-navy);margin-top:5px;}
