.aff-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.aff-nav a {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 14px;
    color: #444;
}

.aff-nav a.active,
.aff-nav a:hover {
    background: var(--fx-primary);
    border-color: var(--fx-primary);
    color: #fff;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card small {
    color: #888;
}

.stat-card strong {
    font-size: 22px;
}

.stat-card.ok strong {
    color: #16a34a;
}

.aff-table th {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    background: #fafafa;
}

.aff-table td {
    vertical-align: middle;
    font-size: 14px;
}

.fx-badge.static {
    position: static;
    display: inline-block;
    margin-inline-start: 6px;
}

.st-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: #eee;
    color: #555;
}

.st-primary {
    background: #e8f0ff;
    color: #2563eb;
}

.st-success {
    background: #e6f7ee;
    color: #16a34a;
}

.st-danger {
    background: #fdeaea;
    color: #dc3545;
}

.st-warning {
    background: #fff4e0;
    color: #d97706;
}

.st-info {
    background: #e3f6fb;
    color: #0891b2;
}

.st-secondary {
    background: #eee;
    color: #666;
}

.st-dark {
    background: #333;
    color: #fff;
}

.oi-prod {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 220px;
}

.oi-prod img,
.oi-ph {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f1f1;
    flex: 0 0 48px;
    display: block;
}

.oi-hint {
    font-size: 12px;
    margin-top: 2px;
}

.aff-table .form-control.is-invalid {
    border-color: #dc3545;
}

.sticky-sum {
    position: sticky;
    top: 90px;
}

.comm-box {
    background: #e6f7ee;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.comm-box strong {
    display: block;
    font-size: 24px;
    color: #16a34a;
}

.att-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.att {
    position: relative;
    width: 84px;
    height: 84px;
    display: block;
}

.att img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.att-x {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: #dc3545;
    color: #fff;
    line-height: 1;
}

.pick-list {
    max-height: 55vh;
    overflow-y: auto;
}

.pick-prod {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.pick-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.pick-head img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.pick-var {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin-inline-start: 40px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-row img,
.cart-ph {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f1f1;
    flex: 0 0 64px;
    display: block;
}

.cart-qty {
    width: 84px;
    text-align: center;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    position: relative;
    padding: 0 18px 14px 0;
    border-inline-start: 2px solid #eee;
    margin-inline-start: 6px;
}

.timeline li::before {
    content: '';
    position: absolute;
    inset-inline-start: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--fx-primary);
}

.timeline li:last-child {
    border-color: transparent;
    padding-bottom: 0;
}

.qv-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.qv-qty {
    width: 80px;
    text-align: center;
    height: 44px;
}